# -*- coding: utf-8 -*-

# Scrapy settings for spixiv project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
#     http://doc.scrapy.org/en/latest/topics/settings.html
#

BOT_NAME = 'spixiv'

SPIDER_MODULES = ['spixiv.spiders']
NEWSPIDER_MODULE = 'spixiv.spiders'

# Crawl responsibly by identifying yourself (and your website) on the user-agent
#USER_AGENT = 'spixiv (+http://www.yourdomain.com)'

ITEM_PIPELINES = {
    'spixiv.pipelines.SpixivPipeline': 300,
}

# custom commands
COMMANDS_MODULE = 'spixiv.commands'

# database uri
# default use sqlite
# 'mysql://username:password@host:port/dbname' for mysql
DATABASE_URI = 'sqlite:///pixiv.db'